<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_department.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_department.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_department',
                    name: 'T_department',
                    url: "/T_department/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_create_time":"","c_id":"","c_jurisdiction":"","c_name":"","c_number":"","c_parent_number":"","c_phone":"","c_state":"","c_those_responsible":""},
                editFormOptions: [[{"title":"c_create_time","field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_jurisdiction","field":"c_jurisdiction","type":"text"}],
                              [{"title":"c_name","field":"c_name","type":"text"},
                               {"title":"c_number","field":"c_number","type":"text"},
                               {"title":"c_parent_number","field":"c_parent_number","type":"text"}],
                              [{"title":"c_phone","field":"c_phone","type":"text"},
                               {"title":"状态(0 启用 1禁用)","field":"c_state","type":"text"},
                               {"title":"c_those_responsible","field":"c_those_responsible","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_create_time',title:'c_create_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_jurisdiction',title:'c_jurisdiction',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_number',title:'c_number',type:'string',width:120,align:'left'},
                       {field:'c_parent_number',title:'c_parent_number',type:'string',width:120,align:'left'},
                       {field:'c_phone',title:'c_phone',type:'string',width:120,align:'left'},
                       {field:'c_state',title:'状态(0 启用 1禁用)',type:'sbyte',width:120,align:'left'},
                       {field:'c_those_responsible',title:'c_those_responsible',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
